service mysqld start
chkconfig mysqld on
mysqld_safe & slepp 3;
mysqladmin -u root password "123456"
mysql -uroot -p123456 -e "GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WHTH GRANT OPTION;"
mysql -uroot -p123456 -e "source /apache-tomcat-7.0.63/webapps/ROOT/WEB-INF/classes/db/xiu.sql"
mysqld_safe